package com.yuanqunsoft.alimigration.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Rule entity. @author MyEclipse Persistence Tools
 */

public class Rule implements java.io.Serializable {

    // Fields 
    private Integer rulId;
    private Remediation remediation;
    private String rulName;
    private String rulDescription;
    private Short rulEnabled;
    private Short rulSeverity;
    private Short rulCategory;
    private Integer rulFirstAlerts;
    private Float rulFirstDaysEach;
    private Integer rulNextAlerts;
    private Float rulNextDaysEach;
    private Float rulAllFurtherDayEach;
    private Set remediations = new HashSet(0);
    private Set rulesetWithRules = new HashSet(0);
    private Set ruleImplements = new HashSet(0);
    private Set alerts = new HashSet(0);

    // Constructors

    /** default constructor */
    public Rule() {
    }

    /** minimal constructor */
    public Rule(String rulName, String rulDescription, Short rulEnabled, Short rulSeverity, Short rulCategory,
            Integer rulFirstAlerts, Float rulFirstDaysEach, Integer rulNextAlerts, Float rulNextDaysEach,
            Float rulAllFurtherDayEach) {
        this.rulName = rulName;
        this.rulDescription = rulDescription;
        this.rulEnabled = rulEnabled;
        this.rulSeverity = rulSeverity;
        this.rulCategory = rulCategory;
        this.rulFirstAlerts = rulFirstAlerts;
        this.rulFirstDaysEach = rulFirstDaysEach;
        this.rulNextAlerts = rulNextAlerts;
        this.rulNextDaysEach = rulNextDaysEach;
        this.rulAllFurtherDayEach = rulAllFurtherDayEach;
    }

    /** full constructor */
    public Rule(Remediation remediation, String rulName, String rulDescription, Short rulEnabled,
            Short rulSeverity, Short rulCategory, Integer rulFirstAlerts, Float rulFirstDaysEach,
            Integer rulNextAlerts, Float rulNextDaysEach, Float rulAllFurtherDayEach, Set remediations,
            Set rulesetWithRules, Set ruleImplements, Set alerts) {
        this.remediation = remediation;
        this.rulName = rulName;
        this.rulDescription = rulDescription;
        this.rulEnabled = rulEnabled;
        this.rulSeverity = rulSeverity;
        this.rulCategory = rulCategory;
        this.rulFirstAlerts = rulFirstAlerts;
        this.rulFirstDaysEach = rulFirstDaysEach;
        this.rulNextAlerts = rulNextAlerts;
        this.rulNextDaysEach = rulNextDaysEach;
        this.rulAllFurtherDayEach = rulAllFurtherDayEach;
        this.remediations = remediations;
        this.rulesetWithRules = rulesetWithRules;
        this.ruleImplements = ruleImplements;
        this.alerts = alerts;
    }

    // Property accessors

    public Integer getRulId() {
        return this.rulId;
    }

    public void setRulId(Integer rulId) {
        this.rulId = rulId;
    }

    public Remediation getRemediation() {
        return this.remediation;
    }

    public void setRemediation(Remediation remediation) {
        this.remediation = remediation;
    }

    public String getRulName() {
        return this.rulName;
    }

    public void setRulName(String rulName) {
        this.rulName = rulName;
    }

    public String getRulDescription() {
        return this.rulDescription;
    }

    public void setRulDescription(String rulDescription) {
        this.rulDescription = rulDescription;
    }

    public Short getRulEnabled() {
        return this.rulEnabled;
    }

    public void setRulEnabled(Short rulEnabled) {
        this.rulEnabled = rulEnabled;
    }

    public Short getRulSeverity() {
        return this.rulSeverity;
    }

    public void setRulSeverity(Short rulSeverity) {
        this.rulSeverity = rulSeverity;
    }

    public Short getRulCategory() {
        return this.rulCategory;
    }

    public void setRulCategory(Short rulCategory) {
        this.rulCategory = rulCategory;
    }

    public Integer getRulFirstAlerts() {
        return this.rulFirstAlerts;
    }

    public void setRulFirstAlerts(Integer rulFirstAlerts) {
        this.rulFirstAlerts = rulFirstAlerts;
    }

    public Float getRulFirstDaysEach() {
        return this.rulFirstDaysEach;
    }

    public void setRulFirstDaysEach(Float rulFirstDaysEach) {
        this.rulFirstDaysEach = rulFirstDaysEach;
    }

    public Integer getRulNextAlerts() {
        return this.rulNextAlerts;
    }

    public void setRulNextAlerts(Integer rulNextAlerts) {
        this.rulNextAlerts = rulNextAlerts;
    }

    public Float getRulNextDaysEach() {
        return this.rulNextDaysEach;
    }

    public void setRulNextDaysEach(Float rulNextDaysEach) {
        this.rulNextDaysEach = rulNextDaysEach;
    }

    public Float getRulAllFurtherDayEach() {
        return this.rulAllFurtherDayEach;
    }

    public void setRulAllFurtherDayEach(Float rulAllFurtherDayEach) {
        this.rulAllFurtherDayEach = rulAllFurtherDayEach;
    }

    public Set getRemediations() {
        return this.remediations;
    }

    public void setRemediations(Set remediations) {
        this.remediations = remediations;
    }

    public Set getRulesetWithRules() {
        return this.rulesetWithRules;
    }

    public void setRulesetWithRules(Set rulesetWithRules) {
        this.rulesetWithRules = rulesetWithRules;
    }

    public Set getRuleImplements() {
        return this.ruleImplements;
    }

    public void setRuleImplements(Set ruleImplements) {
        this.ruleImplements = ruleImplements;
    }

    public Set getAlerts() {
        return this.alerts;
    }

    public void setAlerts(Set alerts) {
        this.alerts = alerts;
    }
    
}